<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org" xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity5">
<div th:replace="/common/head :: head"></div>
<body>
<!-- 网站头部 -->
<div class="fly-header layui-bg-black" th:include="/common/header :: header"></div>


<div class="fly-home fly-panel" style="background-image: url();">
  <img th:src="${user.userImage}" th:alt="${user.username}" src="/images/avatar/1.jpg" alt="贤心">
  <!--title="Rimi社区认证"-->
  <i class="iconfont icon-renzheng" ></i>
  <h1>
    [[ ${user.username} ]]
     <i th:if="${user.userSex == 1}" class="iconfont icon-nan"></i>
     <i th:if="${user.userSex == 2}" class="iconfont icon-nv"></i>
    <!--<i class="layui-badge fly-badge-vip">VIP3</i>-->
    <!--
    <span style="color:#c00;">（管理员）</span>
    <span style="color:#5FB878;">（社区之光）</span>
    <span>（该号已被封）</span>
    -->
  </h1>

  <!--<p style="padding: 10px 0; color: #5FB878;">认证信息：layui 作者</p>-->

  <p class="fly-home-info">
    <!--<i class="iconfont icon-kiss" title="飞吻"></i><span style="color: #FF7200;">66666 飞吻</span>-->
    <i class="iconfont icon-shijian"></i><span th:text="${#temporals.format(user.userCreatetime, 'yyyy-MM-dd') +' 加入'}">2015-6-17 加入</span>
    <i th:if="${user.userAddress!=null}" class="iconfont icon-chengshi"></i><span th:text="${user.userAddress}">来自杭州</span>
  </p>

  <p class="fly-home-sign" th:text="${user.userAutograph==null||user.userAutograph==''?'（这个人懒得留下签名）': '('+user.userAutograph+')'}"></p>

  <!--<div class="fly-sns" data-user="">
    <a href="javascript:;" class="layui-btn layui-btn-primary fly-imActive" data-type="addFriend">加为好友</a>
    <a href="javascript:;" class="layui-btn layui-btn-normal fly-imActive" data-type="chat">发起会话</a>
  </div>-->

</div>

<div class="layui-container">
  <div class="layui-row layui-col-space15">
    <div class="layui-col-md6 fly-home-jie">
      <div class="fly-panel">
        <h3 class="fly-panel-title">[[${user.username}]] 最近的提问</h3>
        <ul class="jie-row">
          <li th:each="card : ${cardList}">
            <span class="fly-jing" th:if="${card.cardEssence == 2}">精</span>
            <a href="" th:href="${'/jie/detail/'+card.cardId}" th:text="${card.cardTitle}" class="jie-title"> 基于 layui 的极简社区页面模版</a>
            <i th:text="${#temporals.format(card.cardCreateTime, 'yyyy-MM-dd hh:mm')}">刚刚</i>
            <em class="layui-hide-xs">[[${card.cardLookNumber}]]阅/[[${card.cardAnswerNumber}]]答</em>
          </li>
          <div th:if="${cardList.size() <= 0}" class="fly-none" style="min-height: 50px; padding:30px 0; height:auto;"><i style="font-size:14px;">没有发表任何求解</i></div>
        </ul>
      </div>
    </div>
    
    <div class="layui-col-md6 fly-home-da">
      <div class="fly-panel">
        <h3 class="fly-panel-title">[[${user.username}]] 最近的回答</h3>
        <ul class="home-jieda">
          <li th:each="replies : ${repliesList}">
          <p>
          <span th:text="${#temporals.format(replies.repliesTime, 'yyyy-MM-dd hh:mm')}">1分钟前</span>
          在<a th:href="${'/jie/detail/'+replies.cardId}" th:text="${replies.cardTitle}" href="" target="_blank">tips能同时渲染多个吗?</a>中回答：
          </p>
          <div class="home-dacontent" th:text="${replies.repliesContent}">
            尝试给layer.photos加上这个属性试试：
<pre>
full: true         
</pre>
            文档没有提及
          </div>
        </li>
           <div th:if="${repliesList.size() <= 0}" class="fly-none" style="min-height: 50px; padding:30px 0; height:auto;"><span>没有回答任何问题</span></div>
        </ul>
      </div>
    </div>
  </div>
</div>

<!-- 页尾 -->
<div th:replace="/common/footer :: footer"></div>

</body>
</html>